import request from './http'

export const upload = (data) => {
  return request.post('/upload', data)
}

export const del = (params) => {
  return request.get('/del', params)
}

export const update = (data) => {
  return request.post('/update', data)
}

export const query = (data) => {
  return request.get('/query', data)
}

export const download = (params) => {
  return request.get('/download', params, 'arraybuffer')
}

export const batchDel = (ids) => {
  return request.post('/batchDel', ids)
}
